<?php
 
class seccionComponents extends sfComponents
{
  public function executeFooter()
  {
  	$q = Doctrine_Query::create()
    ->from('Seccion s ')
    ->where('s.id=6 OR s.id=7 OR s.id=11');
	  $secciones = $q->execute();
	  $this->tyc = $secciones[0];
	  $this->pp = $secciones[1];
  }
  
  public function executeMenusec()  
  {
  	$q = Doctrine_Query::create()
    ->from('Seccion s ')
    ->where('s.padre_id=1');
	$this->ssecciones = $q->execute();
  }
  
  public function executeMenu_cabecera()
  {
  	$q = Doctrine_Query::create()
    ->from('Seccion s ')
    ->where('s.padre_id=3 OR s.id=10');
	$this->secciones = $q->execute();
  }  
}